<!DOCTYPE html>
<html>
<head>

<meta charset="utf-8">
<meta http-equiv="imagetoolbar" content="no" />
<meta http-equiv="pragma" content="no-cach" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<meta name="HandheldFriendly" content="true" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="shortcut icon" href="/xxfbptV50cpgw/xxfb/resource/css2/images_common/favicon.ico" type="image/x-icon" />
<title>信息发布平台</title>
<link type="text/css" media="all" rel="stylesheet" href="/xxfbptV50cpgw/xxfb/resource/css2/base.css" />
<link type="text/css" media="all" rel="stylesheet" href="/xxfbptV50cpgw/xxfb/resource/css2/global.css" />
  <link href="/xxfbptV50cpgw/xxfb/resource/css/reset.css" rel="stylesheet" type="text/css">
<link href="/xxfbptV50cpgw/xxfb/resource/css/fullSlide.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/xxfbptV50cpgw/xxfb/resource/css/idangerous.swiper.css">
<link href="/xxfbptV50cpgw/xxfb/resource/css/index.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="/xxfbptV50cpgw/xxfb//js/common/jquery-1.9.1.min.js"></script>
<script>
	var global_siteId = "402894f254bc6a9d0154bd782d650000";
	var global_channelId = "";
	var global_articleId = "";
</script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb//js/common/common.js"></script>

</head>
<body>
<div class="wrapper">
	<div class="wrapperbox">
    	<!--topbox-->
    	
          
	<div class="headerBox">
    	<span class="logoBox"><a href="/xxfbptV50cpgw/xxfb/index.html?tm=1522732621941"><span class="logo"></span><span>信息发布平台</span></a></span>
    	<span class="topMenuBtn close">
    		<span class="line1"></span>
    		<span class="line2"></span>
    		<span class="line3"></span>
    	</span>

		<span class="headermenuBox">
	    	<!--menu-->
	    	<span class="headerMenu">
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/cpgn/index.html?tm=1522732621944" -->
						<a id="1"  onclick="testCode(this);">产品介绍</a>
                    <input id="channelTestCode1" value="cpgn" hidden="true">
                    <input id="channelTestId1" value="402894f25575e213015575e97b880000" hidden="true">
                    <input id="channelTestUrl1"  value="/xxfbptV50cpgw/xxfb/cpgn/index.html?tm=1522732621944" hidden="true">
							<span class="secondMenuBox">
								<a href="/xxfbptV50cpgw/xxfb/cpgn/jzgl/index.html?tm=1522732621947" >建站管理</a>
								<a href="/xxfbptV50cpgw/xxfb/cpgn/gnzj/index.html?tm=1522732621948" >功能组件</a>
								<a href="/xxfbptV50cpgw/xxfb/cpgn/nrgl/index.html?tm=1522732621949" >内容管理</a>
								<a href="/xxfbptV50cpgw/xxfb/cpgn/hdjl/index.html?tm=1522732621950" >互动交流</a>
								<a href="/xxfbptV50cpgw/xxfb/cpgn/zygl/index.html?tm=1522732621951" >资源管理</a>
								<a href="/xxfbptV50cpgw/xxfb/cpgn/zdtj/index.html?tm=1522732621952" >站点统计</a>
							  </span>
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/cpzx/index.html?tm=1522732621953" -->
						<a id="2"  onclick="testCode(this);">产品资讯</a>
                    <input id="channelTestCode2" value="cpzx" hidden="true">
                    <input id="channelTestId2" value="402894f254eac2f00154ead1d6270004" hidden="true">
                    <input id="channelTestUrl2"  value="/xxfbptV50cpgw/xxfb/cpzx/index.html?tm=1522732621954" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/cpys/index.html?tm=1522732621957" -->
						<a id="3"  onclick="testCode(this);">产品优势</a>
                    <input id="channelTestCode3" value="cpys" hidden="true">
                    <input id="channelTestId3" value="402894f254eac2f00154ead132c60001" hidden="true">
                    <input id="channelTestUrl3"  value="/xxfbptV50cpgw/xxfb/cpys/index.html?tm=1522732621957" hidden="true">
							<span class="secondMenuBox">
								<a href="/xxfbptV50cpgw/xxfb/cpys/cs12345/index.html?tm=1522732621961" >测试12345</a>
								<a href="/xxfbptV50cpgw/xxfb/cpys/FGG/index.html?tm=1522732621962" >FGG</a>
							  </span>
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/cgal/index.html?tm=1522732621963" -->
						<a id="4"  onclick="testCode(this);">成功案例</a>
                    <input id="channelTestCode4" value="cgal" hidden="true">
                    <input id="channelTestId4" value="402894f254eac2f00154ead161c60002" hidden="true">
                    <input id="channelTestUrl4"  value="/xxfbptV50cpgw/xxfb/cgal/index.html?tm=1522732621963" hidden="true">
							<span class="secondMenuBox">
								<a href="/xxfbptV50cpgw/xxfb/cgal/shdq/index.html?tm=1522732621967" >上海地区</a>
								<a href="/xxfbptV50cpgw/xxfb/cgal/qtdq/index.html?tm=1522732621967" >其他地区</a>
							  </span>
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/jszc/index.html?tm=1522732621969" -->
						<a id="5"  onclick="testCode(this);">技术支持</a>
                    <input id="channelTestCode5" value="jszc" hidden="true">
                    <input id="channelTestId5" value="402894f254eac2f00154ead194130003" hidden="true">
                    <input id="channelTestUrl5"  value="/xxfbptV50cpgw/xxfb/jszc/index.html?tm=1522732621969" hidden="true">
							<span class="secondMenuBox">
								<a href="/xxfbptV50cpgw/xxfb/jszc/cjwt/index.html?tm=1522732621973" >常见问题</a>
								<a href="/xxfbptV50cpgw/xxfb/jszc/rmzn/index.html?tm=1522732621973" >入门指南</a>
								<a href="/xxfbptV50cpgw/xxfb/jszc/cpsj/index.html?tm=1522732621974" >产品升级</a>
								<a href="/xxfbptV50cpgw/xxfb/jszc/eckf/index.html?tm=1522732621975" >二次开发</a>
								<a href="/xxfbptV50cpgw/xxfb/jszc/xzzx/index.html?tm=1522732621976" >下载中心</a>
								<a href="/xxfbptV50cpgw/xxfb/jszc/zxzx/index.html?tm=1522732621977" >在线咨询</a>
							  </span>
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/lxwm/index.html?tm=1522732621978" -->
						<a id="6"  onclick="testCode(this);">联系我们</a>
                    <input id="channelTestCode6" value="lxwm" hidden="true">
                    <input id="channelTestId6" value="402894f254eac2f00154ead202620005" hidden="true">
                    <input id="channelTestUrl6"  value="/xxfbptV50cpgw/xxfb/lxwm/index.html?tm=1522732621979" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/qkpd/index.html?tm=1522732621982" -->
						<a id="7"  onclick="testCode(this);">期刊频道</a>
                    <input id="channelTestCode7" value="qkpd" hidden="true">
                    <input id="channelTestId7" value="8a7a3e4961bccbc20161d623ad7f0029" hidden="true">
                    <input id="channelTestUrl7"  value="/xxfbptV50cpgw/xxfb/qkpd/index.html?tm=1522732621982" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/mlsppd/index.html?tm=1522732621986" -->
						<a id="8"  onclick="testCode(this);">曼联期刊频道</a>
                    <input id="channelTestCode8" value="mlsppd" hidden="true">
                    <input id="channelTestId8" value="8a7a3e49621ebbed016266543262088a" hidden="true">
                    <input id="channelTestUrl8"  value="/xxfbptV50cpgw/xxfb/mlsppd/index.html?tm=1522732621986" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/qexyppd/index.html?tm=1522732621988" -->
						<a id="9"  onclick="testCode(this);">切尔西音频频道</a>
                    <input id="channelTestCode9" value="qexyppd" hidden="true">
                    <input id="channelTestId9" value="8a7a3e49621ebbed01626654c7fe088b" hidden="true">
                    <input id="channelTestUrl9"  value="/xxfbptV50cpgw/xxfb/qexyppd/index.html?tm=1522732621989" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/bstppd/index.html?tm=1522732621992" -->
						<a id="10"  onclick="testCode(this);">巴萨图片频道</a>
                    <input id="channelTestCode10" value="bstppd" hidden="true">
                    <input id="channelTestId10" value="8a7a3e49621ebbed016266551450088c" hidden="true">
                    <input id="channelTestUrl10"  value="/xxfbptV50cpgw/xxfb/bstppd/index.html?tm=1522732621992" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/hdwzpd/index.html?tm=1522732621995" -->
						<a id="11"  onclick="testCode(this);">恒大文章频道</a>
                    <input id="channelTestCode11" value="hdwzpd" hidden="true">
                    <input id="channelTestId11" value="8a7a3e49621ebbed01626655a343088d" hidden="true">
                    <input id="channelTestUrl11"  value="/xxfbptV50cpgw/xxfb/hdwzpd/index.html?tm=1522732621996" hidden="true">
						   </span> 
					  <span>
                      <!-- href="/xxfbptV50cpgw/xxfb/zcls/index.html?tm=1522732621999" -->
						<a id="12"  onclick="testCode(this);">中超联赛</a>
                    <input id="channelTestCode12" value="zcls" hidden="true">
                    <input id="channelTestId12" value="8a7a3e49621ebbed01626673cabd08b2" hidden="true">
                    <input id="channelTestUrl12"  value="/xxfbptV50cpgw/xxfb/zcls/index.html?tm=1522732621999" hidden="true">
							<span class="secondMenuBox">
								<a href="/xxfbptV50cpgw/xxfb/zcls/shpd/index.html?tm=1522732622002" >上海频道</a>
								<a href="/xxfbptV50cpgw/xxfb/zcls/gzpd/index.html?tm=1522732622002" >广州频道</a>
							  </span>
						   </span> 
	    	</span>
	    	<!--/menu-->
			<span class="headerMenu">
              <a href="/xxfbptV50cpgw/xxfb//voteList.html">调查投票</a>
         </span>
	  	    <span class="headerSearch headersearchAnimate">
	    		
	    		<input id="searchText" type="text" class="headerSearchInput">
              <span  id="websiteSearch" class="headerSearchBtn"></span>
	    	</span> 
         <!--  <span onclick="searchSite();">搜索</span>
          <input id="searchText" type="text" >-->
          <div>
            <span id='loginAndRegister'><a onclick="toLogin();">登录</a>/<a onclick="toRegister();">注册</a></span>
            <span class="userlengh" id="memberLoginName">游客</span>
            <span id="afterLogin" style="display:none">
                <a onclick="toChangePwd();">修改密码</a>
                <a onclick="toPersonalCenter();">个人中心</a>
                <a onclick="toLogout();">退出</a>
            </span>
          </div>
       
    	</span>
    </div>
<script language="JavaScript" type="text/javascript">
 
  var reviewer = "";
  
  var channelId = "";
  var channelUrl = "";
    
  $(function(){
    debugger
    memberLoginName(handler);  
   
    //isMemberLogin(null,showResultHandler);
    
  })
  
  function testCode(obj){
    var index = obj.id;
  debugger;
    var channelTestCode = $("#channelTestCode"+index).val();
    var channelTestId = $("#channelTestId"+index).val();
    var channelTestUrl = $("#channelTestUrl"+index).val();
    channelId = channelTestId;
    channelUrl = channelTestUrl;
    var json = {};
     json["channelUrl"] = channelUrl;
      json["channelId"] = channelId;
    if(channelTestCode == "cpys"){
      isMemberLogin(json,showResult);
    }else{
    	window.location.href=channelUrl;
    }
  }
  

  function showResult(data){
  	debugger;
    if(data){
     isPermission(channelId); 
    }else{
      window.location.href="/xxfbptV50cpgw/xxfb/memberLogin.html";
    }
  }
  
  function handler(data){
     debugger 
     if(data != ""){
       $("#memberLoginName").html(data);	
       reviewer=data;  
	    $("#loginAndRegister").css("display","none");
      $("#afterLogin").css("display","block");
	   
     }else{
       $("#memberLoginName").html("游客");
	    $("#loginAndRegister").css("display","block");
      $("#afterLogin").css("display","none");
     }
  }
  
  
  function delCollection(obj){
  debugger;
  var id = obj.id;
  
  deleteById(delSuccessHandler,id);
  	
  }
  function delSuccessHandler(data){
  debugger;
  if(null!=data){
  alert("删除成功！");
  //删除完重新加载
   window.location.href="/xxfbptV50cpgw/xxfb/myCollection.html"; 
  }else{
  alert("删除失败！");
  }
  
  }
  
 
  $('#searchText').bind('keyup', function(event) {
    debugger;
    if (event.keyCode == "13") {
      //回车执行查询
      $('#websiteSearch').click();
  	 }
   }); 
  $('body').on('click','#websiteSearch',function(){
    debugger;
 
    if($('#searchText').val() == ''){
      alert("请输入查询条件！");
    }else{
      var search_text = $("#searchText").val();
      var channelId=$("#channelId option:selected").val();
      window.location.href="/xxfbptV50cpgw/xxfb/search.html?search_text="+search_text+"&site_id=402894f254bc6a9d0154bd782d650000&channel_id="+channelId+"";
    }
  });
  
  //登录
  function toLogin(){
    debugger
    window.location.href="/xxfbptV50cpgw/xxfb/memberLogin.html";
  }
  
  //注册
  function toRegister(){
    debugger
  	window.location.href="/xxfbptV50cpgw/xxfb/register.html";
  }
  
  //修改密码
  function toChangePwd(){
    debugger
    window.location.href="/xxfbptV50cpgw/xxfb/changePassword.html";
  }
  
  //个人中心
  function toPersonalCenter(){
    debugger
    window.location.href="/xxfbptV50cpgw/xxfb/personalCenter.html";
  }
  
  //退出
  function toLogout(){
    debugger
    logoutMember(logoutHandler);
  }
  
  function logoutHandler(data){
  	debugger
    if(data){
      alert("已退出当前用户！");
      location.reload();
    }else{
      alert("退出失败！");
      location.reload();
    }
  }
  
</script>     	
    	<!--topbox end-->

		<!--主体结构 包含footer-->
    	<div class="main">
			<div class="localtion clearfix" style="margin-top:9px">
				
				<div class="localtion-right">
					<div class="localtion-right-mid">
						<h2 ><font size="5">找到相关结果约<span id="result_count" style="color:red;"></span>条，用时<span id="result_time" style="color:red;"></span>秒</font></h2>
					</div>
				</div>
			</div>

			<div class="tracingcoderesult">
				<div class="tracingresult">
					<table class="tracingcodeTable">
						<tr>
							<td width="90"><span class="tracingfont">搜索</span></td>
							<td>
								<div class="tracingcode-input-box">
									<input type="text" id="searchFile" class="tracingcode-input" placeholder="请输入查询内容">
									<span class="tracingcode-search-btn"><i class="icon-web-search" onclick="searchCond();"></i></span>
								
								</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
			

				<div class="food-news-list-left">
<input type="hidden" id="search_text"/>
							<div class="listlaws">
                              
								<ul class="newdivdistrict-ul-law" id="result_list">
									
								</ul>
							</div>		
				</div>
          
			<table width="880" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="DAsearch03_01"> 
			   <tbody>
				<tr> 
				 <td height="40" align="center" class="page_area" id="page_area">

				 </td> 
				</tr> 
			   </tbody>
			  </table> 
    	</div>
    	<!--主体结构 包含footer end-->
 	</div>

	<!--footer share-->
<div class="footer-wrap">
	<div class="footer-tel">
		<h1>联系我们</h1>
		<div class="clearfix">
    		<span class="tel-china">
    			<span>全国统一服务热线：400-000-0000</span>
    		</span>
		</div>
		<span class="address">地址：上海市普陀区中江路879号11号楼</span>
		<span class="tel">电话：021-51077666</span>
		<span class="fx">传真：021-51077677</span>
	</div>
	<div class="footer-copyright">上海中信信息发展股份有限公司  沪icp备00000000号</div>
</div>
	<!--footer share end-->


</div>


<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/jquery.min.js"></script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/respond.min.js"></script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/header.js"></script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/footer.js"></script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/login.js"></script>
<script type="text/javascript" src="/xxfbptV50cpgw/xxfb/resource/js2/common.js"></script>
</body>
</html>
  <script type="text/javascript">

	$(function(){
		beforeSearch(true,1);

		
	});
    
    function searchCond(){
      debugger;
    	var text = $("#searchFile").val();
      if(text==""){
        alert("请输入内容");
        return;
      }
      var json={};
     json["searchText"] = text;
     json["currentPage"] = 1;
     json["pageSize"] = 10;
    
     searchByCondition(json,listAndPageData,showError);
    }
	
	//静态页面跳转获取参数
   function getParameter(param){  
        var query = window.location.search;//获取URL地址中？后的所有字符  
        var iLen = param.length;//获取你的参数名称长度  
        var iStart = query.indexOf(param);//获取你该参数名称的其实索引  
        if (iStart == -1)//-1为没有该参数  
            return "";  
        iStart += iLen + 1;  
        var iEnd = query.indexOf("&", iStart);//获取第二个参数的其实索引  
        if (iEnd == -1)//只有一个参数  
            return query.substring(iStart);//获取单个参数的参数值  
        return query.substring(iStart, iEnd);//获取第二个参数的值  
    } 
	
	//搜索前的参数取值
   function beforeSearch(is_init,current_page){
     debugger;
		var search_text = null;
		if(is_init){
			search_text = decodeURI(getParameter("search_text"));  //如果是刚进入页面时的搜索, 就从url中取值
			$("#search_text").val(search_text);
		} else {
			search_text = $("#search_text").val();  //点击搜索按钮, 从搜索文本框里取值
		}
		var site_id = decodeURI(getParameter("site_id"));
      var json={};
     json["searchText"] = search_text;
     json["currentPage"] = current_page;
     json["pageSize"] = 10;
    
     searchByCondition(json,listAndPageData,showError);
		
   }
    
    
    function listAndPageData(data,start_time){
      debugger;
      emptyLastSearchResult();
    		$("#result_loading").hide();
				var results = data.datas;
				if(typeof(results) != "undefined"){ //如果搜索合法
					var end_time = new Date().getTime();
					var result_time = (( end_time - start_time ) / 1000).toFixed(1);
					$("#result_count").text(data.total);	//查询结果总数
					$("#result_time").text(result_time);	//查询耗时
					if(results.length != 0){
                //$("#articleListArea").hide();
						searchHasResult(results);//遍历查询结果, 将结果插入dom中
						searchPage(data.number,data.count);

					} else {
                //$("#articleListArea").hide();
						searchNoResult();//查询无结果
					}
				} else {
              //$("#articleListArea").hide();
					searchNoResult(); //搜索不合法, 查询无结果
				}
    
    }
    

 /*  //根据内容和站点id查询
   function searchByTextAndSiteId(search_text,site_id,current_page){
		debugger;
	    emptyLastSearchResult();
	    var start_time = new Date().getTime(); //计算查询耗时
		$("#result_loading").show();	//显示加载动画
		$("#result_loading").hide();
				
				var results = data.datas;
				if(typeof(results) != "undefined"){ //如果搜索合法
					var end_time = new Date().getTime();
					var result_time = (( end_time - start_time ) / 1000).toFixed(1);
					$("#result_count").text(data.total);	//查询结果总数
					$("#result_time").text(result_time);	//查询耗时
					if(results.length != 0){
						searchHasResult(results);//遍历查询结果, 将结果插入dom中
						searchPage(current_page,data.count);

					} else {
						searchNoResult();//查询无结果
					}
				} else {
					searchNoResult(); //搜索不合法, 查询无结果
				}

   } */

	//查询有结果
   function searchHasResult(results){
		for(var i=0;i<results.length;i++){
			//console.log(results[i]);

			var html =     "<li style='width:100%;'>"+
							 "<h2 class='newstitle'>" + (i+1) + "、 <a href='/" + results[i].PUBLISH_PATH + results[i].PUBLISH_FILE_NAME + "' class='searchresulttitle' target='_blank'>" + results[i].TITLE +"</h2> "+
							"<div class='clearfix'>"+
							"<div class='policies'>"+
							 "<p>" + results[i].CONTENT + "</p>"+
							"</div> "+
							"<div class='replaybox'>"+
							 "<span>日期：" + results[i].PUBLISH_DATE +"</span>"+
							 "</div>"+
							 "</div>"
							"</li>" ;
			$("#result_list").append(html);
			
		}
   }

    function showError(){
    	$("#result_loading").hide();
		alert("服务正忙..请稍后再试。");
    }
	

	//查询无结果
   function searchNoResult(){
		$("#result_count").text(0);
		$("#result_time").text(0);
		var html =			"<tr> "+
							 "<td height='24' align='center'>没有找到任何内容。</td> "+
							"</tr> ";
		$("#result_list").append(html);
   }

	//查询分页
   function searchPage(current_page, total_page){
		if( total_page != 1){ //如果就一页, 不显示分页
			var pageHtml = "";
			var pre_page_length = 5; //显示当前页的前5页分页
			var suf_page_length = 4; //显示当前页的后4页分页
			if(current_page != 1){ //当前页在第一页, 不显示首页和上一页
				pageHtml +="<a href='javascript:beforeSearch(false,1)'>首页</a>";
				pageHtml += "<a href='javascript:beforeSearch(false," + (current_page-1) + ")'>上一页</a>";
			}
			
			var start_index = 1;
			if( current_page - pre_page_length > 0){ //当前页足以显示前5页
				start_index = current_page - pre_page_length ; //从当前页的前5页开始分页
			}
			var end_index = start_index + pre_page_length + suf_page_length;
			if( end_index  > total_page ){ //当前页不足以显示后4页
				end_index = total_page;
			}
			//分页
			for(var i=start_index ; i<=end_index; i++){
				if(current_page == i){
					pageHtml += "<a href='javascript:beforeSearch(false," + i + ")' class='current_page'>" + i + "</a>";
				} else {
					pageHtml += "<a href='javascript:beforeSearch(false," + i + ")'>" + i + "</a>";
				}

			}

			if (current_page != total_page){ //当前页在最后一页, 不显示下一页和最后一页
				pageHtml += "<a href='javascript:beforeSearch(false," + (current_page+1) + ")'>下一页</a>";
				pageHtml += "<a href='javascript:beforeSearch(false," + total_page + ")'>尾页</a>"
			}

			$("#page_area").append(pageHtml)
		}
   }
	

	//清除上一次的查询结果
   function emptyLastSearchResult(){
	 $("#result_list").empty();
	 $("#page_area").empty();
   }
</script> 